package org.graduation.recruitment.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.graduation.recruitment.entity.pojo.resume.*;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResumeVO extends Resume {
    private List<CampusExperience> campusExperiencesList;
    private List<ProjectExperience> projectExperiencesList;
    private List<InternshipExperience> internshipExperiencesList;
    private List<EducationalBackground> educationalBackgroundsList;

    public static ResumeVO resume2NormalVO(Resume resume) {
        ResumeVO resumeVO = new ResumeVO();
        resumeVO.setId(resume.getId());
        resumeVO.setStudentId(resume.getStudentId());
        resumeVO.setTargetJob(resume.getTargetJob());
        resumeVO.setHonoraryCertificate(resume.getHonoraryCertificate());
        resumeVO.setSkills(resume.getSkills());
        resumeVO.setHobbies(resume.getHobbies());
        resumeVO.setSelfEvaluation(resume.getSelfEvaluation());
        resumeVO.setWorkYear(resume.getWorkYear());
        resumeVO.setTargetSalary(resume.getTargetSalary());
        return resumeVO;
    }
}
